// packageJ/tagBalance/components/diyNav/diyNav.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String,
      value: ""
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  lifetimes: {
    attached() {
      let menuInfo = wx.getMenuButtonBoundingClientRect();
      this.setData({
        navigationBarHeight: menuInfo.height,
        navHeight: menuInfo.top
      })

    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    backGo() {
      wx.navigateBack({
        delta: 1,
        fail:function(){
          wx.redirectTo({
            url: '/packageG/index/index',
          })
        }
      })
    }
  }
})